import network from '../network/index'

export default ({
    state: {
      hot:[]
    },
    mutations: {
        hotList(state,items){
            state.hot = items
        }
    },
    actions: {
        hotList(context){
            network.getList({
                page:"1",
                pageSize:"10"
            })
            .then(res => {
                // console.log(123123,res.data.data)
            context.commit('hotList',res.data.data)
            })
            .catch(error => {
              console.log(error);
            });
        }
    },
    modules: {

    }
})
  